package cn.wolfcode.fegin;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.fegin.fallback.ProductFeginApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "product-service",fallback = ProductFeginApiFallback.class)
public interface ProductFeignApi {
    @RequestMapping("/product/selectByIds")
    Result<List<Product>> selectByIds(@RequestParam("ids") List<Long> ids);
}
